package com.patelski.magic.util;

import java.text.SimpleDateFormat;
import java.util.Date;

public class DateUtils {

	public static final String DATE_FORMAT = "yyyy-MM-dd hh:mm";

	private static SimpleDateFormat sdf = new SimpleDateFormat(DATE_FORMAT);

	public static String format(Long dateTime) {
		return sdf.format(new Date(dateTime));
	}

	public static String getCurrentDateTime() {
		return format(System.currentTimeMillis());
	}
}
